define(function(require, exports, module) {
    var ALL = require("../../common/all"),
        CONFIG = ALL.CONFIG,
        METHOD = ALL.METHOD,
        Dialog = ALL.Dialog,
        Init = ALL.Init;


    var _vm = Init.initVue({
        data : {
            in_no : "",
            out_no : "",
            col_id : '',
            plan_name: '',
            list : [],
            id: null,
            cur : 1,
            all : 0,
            search: false,
            status : ''
        },
        methods: {
            reSearch : function() {
                this.search = true;
                this.getData(1);
            },
            reset : function() {
                this.search = false;
                this.in_no = "";
                this.out_no = "";
                this.plan_name = '';
                this.col_id = '';
                this.status = '';
            },
            getData : function(n) {
                var obj = {
                    page: n, num: 10,
                    plan_name : _vm.plan_name,
                    in_no : _vm.in_no,
                    out_no : _vm.out_no,
                    status : _vm.status,
                    col_id : _vm.col_id
                };
                METHOD.loading.show();
                METHOD.ajax("transfer/log/list",obj).done(function(json){
                    METHOD.loading.hide();
                    _vm.list = json.data;
                    _vm.all = json.page.pages;
                }).fail(function(){
                    METHOD.loading.hide();
                });
            }
        }
    });

    _vm.getData(1);

});

